# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-canonicaljson
pkgver=1.3.0
pkgrel=0
pkgdesc="Canonical JSON"
url="https://github.com/matrix-org/python-canonicaljson"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-simplejson py3-frozendict"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/python-canonicaljson/archive/v$pkgver.tar.gz"
builddir="$srcdir/python-canonicaljson-$pkgver"

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0aa294745608515f160213a316beedd7cfe4defc9ad56aa9fae8b97383c81ff07adcc14de5ce3c045c13634b157540d01a3fc9b76fd270d384d0c74b4e4767b5  py3-canonicaljson-1.3.0.tar.gz"
